var AjaxFormManager = function(formObj){
	$(formObj).unbind("submit");
	$(formObj).bind("submit", function(e){
	   var sendUrl = $(this).attr("action");
	   var sendMethod = $(this).attr("method");
	   
	   var paramData = "";
	   var inputElements = this.elements;
	   
	   
	   for (var i=0; i<inputElements.length; i++){
		   var tempObj = $(inputElements[i]);
		   if( tempObj.attr("name").length > 0 ){
			   paramData = paramData + "&" + tempObj.attr("name") + "=" + encodeURIComponent( tempObj.val() );
		   }
	   }
	   
	   paramData = paramData.substring(1);
	   var succFun = eval( $(this).attr("succ") );
	   var This = $(this);
	   $.ajax({
		   type : sendMethod,
		   cache : false,
		   url : sendUrl,
		   data : paramData,
		   success : function(html){
			   if( $.isFunction(succFun) ){
				   succFun(html, This);
			   };
		   }
	   });
	   return false;
   });
}